package com.sample.traffic.action.ydqyfx;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.sample.traffic.action.ydqyfx.dao.YdqyGisNewDAO;

public class YdqyfxAlarmGisAction extends ActionSupport {
	
	public String execute() throws Exception {
		ActionContext ctx = ActionContext.getContext();         
		HttpServletRequest request = (HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);
		String updateAreaID = (String) request.getParameter("updateAreaID");
		YdqyGisNewDAO dao = new YdqyGisNewDAO();
		request.setAttribute("nodeList",dao.getNodeInfo());
		request.setAttribute("areaList",dao.getAreaNewInfo());
		request.setAttribute("updateAreaID", updateAreaID);
		return SUCCESS;
	}
}
